﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace SelfMadeMillionaire.Web.Infrastructure.ViewModels.Account
{
	public class LoginViewModel
	{
		[Required]
		[StringLength(50)]
		//[RegularExpression(Constants.EMAIL_REGX, ErrorMessage = "Please enter a valid email address")]
		public string Email { get; set; }
		[Required]
		[StringLength(40)]
		[DataType(DataType.Password)]
		public string Password { get; set; }

		public bool RememberMe { get; set; }

        public Guid? Token { get; set; }
        public string ReturnUrl { get; set; }
	}

    public class PasswordRecoveryModel
    {
        [Required]
        [StringLength(50)]
        [RegularExpression(Constants.EMAIL_REGX, ErrorMessage = "Please enter a valid email address")]
        [Display(Name = "Email")]
        public string PasswordRecoveryEmail { get; set; }
        public string PasswordRecoveryMessage { get; set; }
        public bool? PasswordRecoveryIsSuccess { get; set; }
    }
}
